package com.shrcl.engineerprocess.domain.impl;

import com.shrcl.engineerprocess.domain.EngineerSeqConfig;
import com.shrcl.engineerprocess.domain.proxy.EngineerSeqConfigProxy;
import edu.fudan.mylang.pf.BaseModelObject;
import edu.fudan.mylang.pf.IObjectFactory;
import java.util.Date;
import javax.persistence.DiscriminatorColumn;
import javax.persistence.DiscriminatorValue;
import javax.persistence.Entity;
import javax.persistence.Table;
import org.eclipse.xtext.xbase.lib.Procedures.Procedure1;
import org.hibernate.annotations.DiscriminatorOptions;

@Entity
@DiscriminatorValue("ENGINEERSEQCONFIG_TYPE")
@DiscriminatorOptions(force = true)
@DiscriminatorColumn(length = 64)
@Table(name = "engineerseqconfig")
public class EngineerSeqConfigImpl extends BaseModelObject implements EngineerSeqConfig {
  public EngineerSeqConfigImpl() {
    super();
  }
  
  private Date sequenceDate;
  
  public Date getSequenceDate() {
    return this.sequenceDate;
  }
  
  public EngineerSeqConfig setSequenceDate(final Date sequenceDate) {
    this.sequenceDate = sequenceDate;
    return this;			
    
  }
  
  private Integer engineerWorkOrderSequence;
  
  public Integer getEngineerWorkOrderSequence() {
    return this.engineerWorkOrderSequence;
  }
  
  public EngineerSeqConfig setEngineerWorkOrderSequence(final Integer engineerWorkOrderSequence) {
    this.engineerWorkOrderSequence = engineerWorkOrderSequence;
    return this;			
    
  }
  
  private Integer engineerProjectJobSequence;
  
  public Integer getEngineerProjectJobSequence() {
    return this.engineerProjectJobSequence;
  }
  
  public EngineerSeqConfig setEngineerProjectJobSequence(final Integer engineerProjectJobSequence) {
    this.engineerProjectJobSequence = engineerProjectJobSequence;
    return this;			
    
  }
  
  public static EngineerSeqConfig create(final IObjectFactory objectFactory) {
    com.shrcl.engineerprocess.domain.EngineerSeqConfig engineerSeqConfig = new com.shrcl.engineerprocess.domain.impl.EngineerSeqConfigImpl(
    );
    objectFactory.create(engineerSeqConfig);
    return engineerSeqConfig;			
    
  }
  
  public static EngineerSeqConfig createEngineerSeqConfigImpl(final IObjectFactory objectFactory, final Procedure1<EngineerSeqConfig> init) {
    com.shrcl.engineerprocess.domain.EngineerSeqConfig engineerSeqConfig = new com.shrcl.engineerprocess.domain.impl.EngineerSeqConfigImpl(
    );
    objectFactory.create(engineerSeqConfig);
    init.apply(engineerSeqConfig);
    
    return engineerSeqConfig;			
    
  }
  
  public EngineerSeqConfigProxy toProxy() {
    com.shrcl.engineerprocess.domain.proxy.EngineerSeqConfigProxy proxy = new com.shrcl.engineerprocess.domain.proxy.EngineerSeqConfigProxy();
    proxy.setId(this.getId());
    if(this instanceof edu.fudan.mylang.pf.INamedModelObject){
    	proxy.setName(((edu.fudan.mylang.pf.INamedModelObject)this).getEntityName());
    }
    return proxy;
    
  }
}
